package L07.T01;




public class train2 {

    //二叉树翻转
    public BinaryTree.TreeNode invertTree(BinaryTree.TreeNode root) {
        //返回null
        if(root==null)return null;
        BinaryTree.TreeNode tmp;
        tmp=root.left;
        root.left=root.right;
        root.right=tmp;
        invertTree (root.left);
        invertTree (root.right);
        return root;
    }
}
